package com.net.xpay.common.model.admin.rbac;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 构建前端路由时用到
 * @author jie
 * @date 2018-12-20
 */
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class MenuModel implements Serializable {

    private String name;

    private String path;

    private String redirect;

    private String component;

    private Boolean alwaysShow;

    private MenuMeta meta;

    @ApiModelProperty(notes = "是否隐藏 0.不隐藏 1.隐藏")
    private Integer hidden;

    private List<MenuModel> children;
}
